<?php
include 'functions.php';
$days = '-1 days';
$endTime = strtotime('today', time());
$startTime = strtotime($days, $endTime);
for($i = 0; $i < 100; $i++){
	$sql = "INSERT INTO ych_account_log SELECT * from ych_account_log_$i where add_time>=$startTime and add_time<$endTime";
	mysql_query($sql, $conn);
}
echo "over";